cmake_minimum_required(VERSION 3.11)

add_executable(${PROJECT_NAME})

target_sources(${PROJECT_NAME}
    PRIVATE main.c
)

target_link_libraries(${PROJECT_NAME}
    PRIVATE OneMessage
    PRIVATE pthread
)

target_include_directories(${PROJECT_NAME}
    PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
    PRIVATE $<TARGET_PROPERTY:OneMessage,INTERFACE_INCLUDE_DIRECTORIES>
)

add_dependencies(${PROJECT_NAME}
    OneMessage
)